<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="css/company.css" />
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" >
   $(document).ready(function () {
      //职位搜索-热门搜索选项卡
      var oLihot = document.getElementById("tabcompany").getElementsByTagName("li");
      var oUlhot = document.getElementById("contentcompany").getElementsByTagName("ul");
      for(var i = 0; i < oLihot.length; i++)
      {
         oLihot[i].index = i;
         oLihot[i].onclick = function ()
         {
            for(var n = 0; n < oLihot.length; n++)
               oLihot[n].className="";
            this.className = "Active";
            for(var n = 0; n < oUlhot.length; n++)
               oUlhot[n].style.display = "none";
            oUlhot[this.index].style.display = "block";

         }
      }

   })
</script>
   <script type="text/javascript">
      $(document).ready(function () {
         $("[name=pname]").click(function () {
            var pid = $(this).data('pid');

            location.href = "/job_info?pid="+pid;
         });

         $("[name=apply]").click(function () {
            var pid = $(this).data('pid');
            var uid =$("#uid").text();
            alert(uid)
            location.href="/job_info?pid="+pid+ "&&uid="+uid;
         })
      })
   </script>
<title>公司信息</title>
</head>

<body>


<h1 type="hidden"  id="uid" th:text="${uid}"></h1>

<div class="compHeader">
  <div class="main">
     <div class="header_l">
        <a href="index.html">
           <img src="images/logo_1.png" />
           <img src="images/logo_2.png" />
        </a>
        <span>www.xxx.com</span>
     </div>
   <!--  <div class="header_c">
        <input name="" type="text" placeholder="请输入关键字..." class="keyword"/>
        <input name="" type="button" class="btnsearch"/>
     </div>-->
     <div class="header_r">
     </div>
  </div>
</div>
<div class="compMain">
  <div class="main">
     <div class="CpLogo">
        <img src="images/company.gif" />
     </div>
     <div class="CpDetail">
        <div class="CompanyName">
           <span th:text="${enterprise.ename}"class="title"></span>
           <img src="images/16.png" />
           <span class="guanzhu">+ 关注</span>
        </div>
        <p th:text="${enterprise.nature}"></p>

        <p><a th:text="${enterprise.homepage}" href=""></a></p>
        <p th:text="${enterprise.Full_address}"></p>
     </div>
  </div>
</div>
<div class="compcontent">
   <div class="comcontentL">
     <ul id="tabcompany">
       <li class="Active">公司介绍</li>
       <li>招聘职位</li>
       <div class="clear"></div>
    </ul>
    <div class="clear"></div>
    <div id="contentcompany">
       <ul style="display:block">
          <div th:text="${enterprise.introduce}" class="conts">
        </div>
       </ul>
       <ul>
          <!-- 假设controller返回的mv中有一个名为posts的集合对象 -->
          <div class="zhiwei" th:each="post1 : ${posts}">
             <div class="zhiweiL">
                <div class="zw1">

                   <a name="pname"  th:text="${post1.pname}" class="pname" th:attr="data-pid=${post1.pid}"></a >



                   <span th:text="${'[' + post1.location + ']'}"></span>
                </div>
                <div class="zw2">
                   <p>
                      <span th:text="'职位月薪：' + ${post1.salary}" class="red"></span>
                      <span th:text="'招聘：' + ${post1.amount}"></span> |
                      <span th:text="${post1.Recruitment_method}"></span> |
                      <span th:text="${post1.age}"></span> |
                      <span th:text="${post1.experience}"></span> |
                      <span th:text="${post1.refresh_time}"></span>
                   </p>
                </div>
                <div th:text="${post1.duty}" class="zw3"></div>
                <div th:text="${post1.request}" class="zw3"></div>
             </div>
             <div name="uptable" class="zhiweiR">
                <a class="pname" th:attr="data-pid=${post1.pid}" name="apply">立即申请</a>

             </div>
          </div>

       </ul>
    </div>
   </div>
</div>

<div class="clear"></div>
<div class="footer">
</div>
</body>
</html>
